package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.GuideInfoDao;
import com.qifan.alb2b.domain.GuideInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

/**
 * 导游业务
 * @author hc24
 *
 */
@Service
public class GuideInfoService {
	private GuideInfoDao guideInfoDao;

	public void setGuideInfoDao(GuideInfoDao guideInfoDao) {
		this.guideInfoDao = guideInfoDao;
	}
	
	public Page query(DataGridModel dgm,GuideInfoDomain gid){
		return guideInfoDao.query(dgm, gid);
	}
	
	public GuideInfoDomain getGuideById(String gid){
		return guideInfoDao.getGuideById(gid);
	}
	
	public void add(GuideInfoDomain guideInfoDomain){
		guideInfoDao.add(guideInfoDomain);
	}
	
	public void update(GuideInfoDomain guideInfoDomain){
		guideInfoDao.update(guideInfoDomain);
	}
	
	public void delete(String[] ids){
		guideInfoDao.delete(ids);
	}
}
